package com.ddstation.common.property;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

/**
 * 页面显示年龄用
 * @author zhangdifeng
 *
 */
public class AgeProperties {
	private final static String fileName = "/properties/age.properties";
	
	public static void initialize() throws IOException {
		
		Properties prop =  new  Properties();
		InputStream in = null;
		try {
			in = new FileInputStream(AgeProperties.class.getClassLoader().getResource("/").getPath()+ fileName);
			prop.load(in);
		} finally {
			if (in != null) {
				in.close();
			}
		}

		if(prop.containsKey("LIMIT"))
			LIMIT = Integer.parseInt(prop.getProperty("LIMIT").trim());
	}
	
	public static Integer LIMIT = 3;
}
